//
//  nameOftouxiang.m
//  project-A (pianke)
//
//  Created by dllo on 16/3/1.
//  Copyright © 2016年 scott. All rights reserved.
//

#import "nameOftouxiang.h"
#import <DKNightVersion.h>
@implementation nameOftouxiang

-(void)dealloc{
    
    [_labelOfname release];
    [super dealloc];
}

-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        self.labelOfname = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 150, 30)];
        
//        self.labelOfname.center = CGPointMake(self.bounds.size.width * 2 /3, 125);
        
        [self addSubview:self.labelOfname];
        
        [self.labelOfname release];
        
        self.labelOfname.textColor = [UIColor whiteColor];
        
        self.labelOfname.dk_textColorPicker  = DKColorWithColors([UIColor whiteColor], [UIColor colorWithRed:0.16 green:0.14 blue:0.13 alpha:1]);
        
        self.labelOfname.font = [UIFont fontWithName:@"Helvetica-Bold" size:18];
        
        
        
        [self.labelOfname release];
        
    }
    return self;
}


-(void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    self.block();
    
    
}

@end
